#define _CRT_SECURE_NO_WARNINGS 1
#include"queue.h"

Test1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	//QueuePrint(&q);
	int a1 = QueueTop(&q);
	printf("%d\n", a1);
	QueuePop(&q);

	int a2 = QueueTop(&q);
	printf("%d\n", a2);
	QueuePop(&q);

	int a3 = QueueTop(&q);
	printf("%d\n", a3);
	QueuePop(&q);

	int a4 = QueueTop(&q);
	printf("%d\n", a4);
	QueuePop(&q);

	int a5 = QueueTop(&q);
	printf("%d\n", a5);
	QueuePop(&q);

	int size = QueueSize(&q);
	printf("%d\n", size);
}

Test2()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	//QueuePrint(&q);
	int a1 = QueueTop(&q);
	printf("%d\n", a1);
	QueuePop(&q);

	int a2 = QueueTop(&q);
	printf("%d\n", a2);
	QueuePop(&q);

	int a3 = QueueTop(&q);
	printf("%d\n", a3);
	QueuePop(&q);

	int a4 = QueueBack(&q);
	printf("%d\n", a4);//5
	QueuePop(&q);

	

	int size = QueueSize(&q);
	printf("%d\n", size);
}


void Test3()
{
	MyStack* obj = myStackCreate();
	//myStackPush(obj, 1);
	/*myStackPush(obj, 2);
	int param_3 = myStackTop(obj);
	int param_2 = myStackPop(obj);*/
	bool param_4 = myStackEmpty(obj);
	myStackFree(obj);
}
int main()
{
	//Test1();
	//Test2();
	Test3();
	return 0;
}